<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: mld
  Date: 17-12-28
  Time: 下午10:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Operations</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">

    <h1>Operations</h1>
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <tr>
                <td>id</td>
                <td>description</td>
                <td>journal</td>
                <td>wood</td>
            </tr>
            <c:out value="${operations.size()}"></c:out>
            <c:forEach items="${operations}" var="operation">
                <tr>
                    <td>${operation.id}</td>
                    <td>${operation.description}</td>
                    <td>${operation.journal.content}</td>
                    <td><a href="${operation.wood.image_path}">查看图片</a></td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>
</body>
</html>
